﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Group.aspx.cs" Inherits="Manage_basisset_Group" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>用户组管理</title>
    <link rel="stylesheet" type="text/css" href="../skin/css/base.css" />
    <script src="../script/jquery.min.js" type="text/javascript" language="javascript"></script>
    <script src="../script/jquery-ui.min.js" type="text/javascript" language="javascript"></script>
    <style type="text/css">
        .cinputedit
        {
            border: solid 1px green;
        }
        .cinput
        {
            border: none;
        }
    </style>
</head>
<body leftmargin="8" topmargin="8" background='../skin/images/allbg.gif'>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"  EnableScriptGlobalization="True" EnableScriptLocalization="True">
        </asp:ScriptManager>
    <!--  快速转换位置按钮  -->
    <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">
        <tr>
            <td height="26" background="../skin/images/newlinebg3.gif">
                <table width="98%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                       <td align="center"><span style="font-size:14px; font-weight:bold">用户组</span></td>
                        <td  align="right"  style="width:60px">
                         
                          <asp:Button ID="addGroup" runat="server"  class="coolbg_add" Text="添加用户组"  onclick="addGroup_Click"  />
                          
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
     <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>

    <!--  内容列表   -->
    <div id="form2">
        <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center"
            style="margin-top: 8px">
            <tr bgcolor="#E7E7E7">
                <td height="24" colspan="5" background="../skin/images/tbg.gif">
                    &nbsp;用户组列表            
                </td>
            </tr>
             <tr style="background-color:#ffffff">
            <td  colspan="5" >
               <asp:GridView ID="grdvGroup" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                            AutoGenerateColumns="False" AllowPaging="False" PageSize="12" 
                            DataKeyNames="GroupId"  DataMember="Name" 
                    OnRowDataBound="grdvGroup_RowDataBound" GridLines="Both" 
                    onrowcommand="grdvGroup_RowCommand" SelectedIndex="0"  AllowSorting="true" 
                    onrowdeleting="grdvGroup_RowDeleting" onsorting="grdvGroup_Sorting">
                            <Columns>
                                 <asp:TemplateField HeaderText="名称" SortExpression="Name">
                                    <ItemTemplate>
                                     <asp:Label ID="lblname" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle Width="40%" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="备注" SortExpression="Remark">
                                    <ItemTemplate>
                                     <asp:Label ID="lblremark" runat="server" Text='<%#Eval("Remark") %>'></asp:Label>
                                    </ItemTemplate>
                                     <ItemStyle Width="50%" />
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                       <asp:LinkButton runat="server" ID="lbtEdit" CommandArgument='<%#Eval("GroupId")%>'
                                    CommandName="Edit" Text="编辑" Visible='<%#edit==1%>' ></asp:LinkButton>&nbsp;&nbsp;
                                   <asp:LinkButton runat="server" ID="lbtDelete" CommandArgument='<%#Eval("GroupId")%>'
                                    CommandName="Delete" Text="删除" Visible='<%#delete==1%>' OnClientClick="return confirm('您确定要删除该用户组吗？')"></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                               
                            </Columns>
                            <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                            <RowStyle Height="20px" BackColor="#FFFFFF"  ForeColor="#000000" />
                            <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#FCFDEE" />
                            <SelectedRowStyle BackColor="#FFFFFF"  ForeColor="#000000" />
                            <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                            <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                            
                        </asp:GridView>
           </td>
           </tr>
          
           
        </table>
        
    </div>
     </ContentTemplate>


    </asp:UpdatePanel>
    </form>
</body>
</html>
